package cn.com.dealme.nutz.validation;

import javax.servlet.http.HttpServletRequest;


public class HttpRequestMapAdaptor<K, V> extends MapAdaptor<K, V> {

	private static final long serialVersionUID = 6243347364983765045L;
	
	private HttpServletRequest request;

	public HttpRequestMapAdaptor(HttpServletRequest req) {
		request = req;
	}
	
	@SuppressWarnings("unchecked")
	public V get(Object key) {
		return (V) request.getParameter((String) key);
	}

	
	
}
